package lmteam.applicationservice;

import org.junit.Test;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertFalse;

import lmteam.common.*;


public class RunningAssignmentServiceTest {
  
  @Test
  public void testAssignTask() throws java.lang.Exception {

    IAssignProcessServiceLocator iapsl = new IAssignProcessServiceLocator();
      IAssignProcess iap;
    iap = iapsl.getIApplication();

    assertNotNull(iap);

    lmteam.common.Document doc = new lmteam.common.Document();
    doc.setFilename("ASimpleDoc.txt");
    doc.setAuthor("John");
    doc.setData("abcdefghijklmnopqrstuvwxyz");

    System.out.println("Pre-call");
    assertTrue(iap.assignTask(doc));

  } // testAssignTask

  public static void main(String args[]) throws java.lang.Exception {

    RunningAssignmentServiceTest aspt = new RunningAssignmentServiceTest();
    aspt.testAssignTask();

  } // main

} // RunningAssignmentServiceTest
